package com.headingdata.memory;

public class ArrayDemo1 {
    public static void main(String[] args) {
        //多个变量指向同一个数组对象
        int[] arr = {12,23,56};
        int[] arr1 = arr;
        System.out.println(arr);
        System.out.println(arr1);

        arr1[1] = 88;
        System.out.println(arr[1]);

        arr1 = null;
        System.out.println(arr1);
//        System.out.println(arr1[0]);
//        System.out.println(arr1.length);

    }
}
